package com.ztgf.shopping.models.vo.shop;

import com.ztgf.commodity.models.dto.CommodityInfoDTO;
import com.ztgf.commodity.models.vo.CommodityAttrPriceVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 购物车商品信息表VO
 *
 * @author zhanghualang
 * @Date 2020-05-27 14:05:12
 */
@Data
public class ShopCommodityCartVO implements Serializable {
    @ApiModelProperty(value = "商品信息")
    private CommodityInfoDTO commodityInfoDTO;

    @ApiModelProperty(value = "属性价格信息")
    private CommodityAttrPriceVO commodityAttrPriceVO;

    @ApiModelProperty(value = "购物车关联ID")
    private Long id;

    @ApiModelProperty(value = "价格是否降低 0正常，1降低")
    private Integer lower;

    @ApiModelProperty(value = "数量 默认1")
    private Integer number;

    @ApiModelProperty(value = "加入购物车单价")
    private BigDecimal price;

    @ApiModelProperty(value = "失效原因 0下架。1库存没有")
    private Integer failType;

    @ApiModelProperty(value = "询盘规格型号")
    private String specificationModel;

    @ApiModelProperty(value = "购物车类型：0普通 1询盘")
    private Integer type;

    @ApiModelProperty(value = "询盘商品报价表id")
    private Long purchaseCommodityBargainId;
}
